Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 5720: fire control error concurrent modification #5774

Conversation

Sleet01
Copy link
Collaborator

@Sleet01 Sleet01 commented Jul 23, 2024

Apparently having two nested enhanced for loops accessing the same stuff is verboten; replace the lower-level loop with an iterator loop.

Testing:

Close #5720

@Sleet01 Sleet01 requested a review from rjhancock July 23, 2024 02:24
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.06%. Comparing base (3cf576e) to head (0785769).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5774      +/-   ##
============================================
- Coverage     29.07%   29.06%   -0.01%     
+ Complexity    13905    13902       -3     
============================================
  Files          2507     2507              
  Lines        266309   266308       -1     
  Branches      47598    47598              
============================================
- Hits          77417    77413       -4     
- Misses       184970   184974       +4     
+ Partials       3922     3921       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IllianiCBT IllianiCBT merged commit e9cf092 into MegaMek:master Jul 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FireControl Error "FireControl.entityCanIndirectFireMissile"
3 participants